{"version":3,"sources":["cols-sortable.js"],"names":["BX","namespace","Grid","ColsSortable","parent","this","dragItem","targetItem","rowsList","colsList","dragRect","offset","startDragOffset","dragColumn","targetColumn","isDrag","init","prototype","getColsList","getRowsList","inited","addCustomEvent","proxy","reinit","registerObjects","destroy","removeCustomEvent","unregisterObjects","reset","fixedTableColsList","isActive","forEach","register","getFixedHeaderColsList","unregister","column","jsDD","unregisterObject","onbxdragstart","_onDragStart","onbxdrag","_onDrag","onbxdragstop","_onDragEnd","registerObject","Utils","getByTag","getRows","getHeadFirstChild","getNode","filter","current","isStatic","getParam","getPinHeader","getFixedTable","getSourceRows","concat","item","hasClass","settings","get","getDragOffset","getScrollContainer","scrollLeft","startScrollOffset","x","left","getColumn","cell","HTMLTableCellElement","map","row","cells","cellIndex","isPinned","current_node","getBoundingClientRect","Math","ceil","width","start_x","dragIndex","getIndex","preventSortableClick","isDragToRight","node","index","nodeClientRect","nodeCenter","window","isDragToLeft","isDragToBack","isMovedToRight","style","transform","isMovedToLeft","isMoved","moveColumn","transition","type","isNumber","styleForEach","dragOffset","leftOffset","rightOffset","defaultOffset","dragTransitionDuration","call","classList","contains","collectionSort","columns","data","getUserOptions","setColumns","onCustomEvent","getContainer","setTimeout","bind"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,WAObD,GAAGE,KAAKC,aAAe,SAASC,GAE/BC,KAAKD,OAAS,KACdC,KAAKC,SAAW,KAChBD,KAAKE,WAAa,KAClBF,KAAKG,SAAW,KAChBH,KAAKI,SAAW,KAChBJ,KAAKK,SAAW,KAChBL,KAAKM,OAAS,KACdN,KAAKO,gBAAkB,KACvBP,KAAKQ,WAAa,KAClBR,KAAKS,aAAe,KACpBT,KAAKU,OAAS,KACdV,KAAKW,KAAKZ,IAGXJ,GAAGE,KAAKC,aAAac,WACpBD,KAAM,SAASZ,GAEdC,KAAKD,OAASA,EACdC,KAAKI,SAAWJ,KAAKa,cACrBb,KAAKG,SAAWH,KAAKc,cAErB,IAAKd,KA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